package jp.dev7.manofac.robocode;

import robocode.AdvancedRobot;
import robocode.ScannedRobotEvent;

public class MyFirstRobot extends AdvancedRobot {

	@Override
	public void run() {

		while (true) {
			ahead(100);
			turnGunLeft(360);
			back(100);
			turnGunRight(360);
		}
	}

	@Override
	public void onScannedRobot(ScannedRobotEvent event) {
		fire(1);
	}
}
